package com.crm.service.couponManager;

import com.crm.model.entity.couponManager.CustomerContractCoupon;
import com.crm.model.vo.couponManager.CouponPayListVO;

import java.util.List;

/**
 * @author luojie
 * @date 2021/5/21 15:52
 */
public interface ContractCouponDbService {

    /***
     * @Description:插入合同优惠券表
     * @Param:customerContractCoupon 参数
     * @Author: luojie
     * @Date: 2021/5/21 15:53
     */
    Boolean insertCustomerCoupon(CustomerContractCoupon customerContractCoupon);

    /***
     * @Description:根据合同id查询合同优惠券信息
     * @Param:contractId 合同id
     * @Author: luojie
     * @Date: 2021/5/21 16:11
     */
    List<CustomerContractCoupon> selectContractCouponByContractId(String contractId);

    /**
     * 根据优惠券id及客户id查看该客户的该优惠券的使用记录
     * @Author renshaorong
     * @Date 2021/11/30
     * @param couponId
     * @param customerId
     * @return
     */
    List<CouponPayListVO> selectContractCouponByCouponIdAndCustomerId(String couponId, String customerId);
}
